package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "lagou-service-email",path = "/email")
public interface EmailServiceClient {
    @GetMapping("/sendEmail")
    public String sendEmail(@RequestParam("email") String email, @RequestParam("registCode") String registCode);
}
